package com.sunwayworld.basemodule.business.qualitycontrol.qualitycontrolresult.dao.impl;

import com.sunwayworld.basemodule.business.qualitycontrol.qualitycontrolresult.bean.LimsQualitycontrolTestResultManageBean;
import com.sunwayworld.basemodule.business.qualitycontrol.qualitycontrolresult.dao.LimsQualitycontrolTestResultManageDao;
import com.sunwayworld.basemodule.business.qualitycontrol.qualitycontrolresult.mapper.LimsQualitycontrolTestResultManageMapper;
import com.sunwayworld.framework.mybatis.dao.MybatisDaoSupport;
import com.sunwayworld.framework.mybatis.mapper.MapperParameter;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@GikamBean
public class LimsQualitycontrolTestResultManageDaoImpl extends MybatisDaoSupport<LimsQualitycontrolTestResultManageBean, Long> implements LimsQualitycontrolTestResultManageDao {

    @Autowired
    private LimsQualitycontrolTestResultManageMapper limsQualitycontrolTestResultManageMapper;

    @Override
    public LimsQualitycontrolTestResultManageMapper getMapper() {
        return limsQualitycontrolTestResultManageMapper;
    }

    @Override
    public List<Map<String, Object>> selectDistinctRowsByCondition(MapperParameter parameter) {
        return getMapper().selectDistinctRowsByCondition(parameter);
    }
}
